package com.learn.mqq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author guowenhao
 * @since 2023-12-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yx_exam_answer")
public class YxExamAnswer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 考试记录id
     */
    @TableField("exam_log_id")
    private Long examLogId;

    /**
     * 试卷id
     */
    @TableField("paper_id")
    private Integer paperId;

    /**
     * 题库id
     */
    @TableField("question_id")
    private Long questionId;

    /**
     * 用户回答
     */
    @TableField("answer")
    private String answer;

    /**
     * 分数
     */
    @TableField("score")
    private BigDecimal score;

    /**
     * 是否正确
     */
    @TableField("is_right")
    private Integer isRight;

    /**
     * 类型
     */
    @TableField("type")
    private Integer type;


}
